package xyz.zq.cloud.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import xyz.zq.cloud.bs.api.entity.Menu;
import xyz.zq.cloud.bs.api.vo.MenuVO;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author hzq
 * @since 2020-05-11
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 通过角色编号查询URL 权限
     *
     * @param roleId 角色ID
     * @return 菜单列表
     */
    List<MenuVO> listMenusByRoleId(Integer roleId);

}
